function insertBefore(targetEl, parentEl, beforeEl) {
    if (parentEl) {
        if (beforeEl) {
            parentEl.insertBefore(targetEl, beforeEl);
        } else {
            parentEl.appendChild(targetEl);
        }
    }
}
exports = module.exports = insertBefore;